// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Item {
    id: item1
    width: 480
    height: 854
    clip: true

    property string location_text: ""
    property string location_lonlat: ""

    signal show_on_map(string l_text, string l_lonlat)
    signal use_as_start(string l_text, string l_lonlat)
    signal use_as_end(string l_text, string l_lonlat)
    signal cancel_this()

    function set_location(textt, lonlat)
    {
        location_text = textt;
        location_lonlat = lonlat;
    }

    Rectangle {
        id: rectangle1
        color: "#000000"
        opacity: 0.700
        anchors.fill: parent
    }

    Mbutton {
        id: mbutton_cancel
        x: 24
        y: 422
        textstring: "取消"

        onButtonclick:
        {
            cancel_this();
        }
    }

    Mbutton {
                id: mbutton_endp
                x: 92
                y: 316
                textstring: "作终点"

                onButtonclick:
                {
                    use_as_end(location_text, location_lonlat);
                }
    }

    Mbutton {
        id: mbutton_startp
        x: 170
        y: 208
        textstring: "作起点"

        onButtonclick:
        {
            use_as_start(location_text, location_lonlat);
        }
    }

    Mbutton {
        id: mbutton_onMap
        x: 260
        y: 108
                textstring: "看地图"

                onButtonclick:
                {
                    show_on_map(location_text, location_lonlat);
                }
            }

            Rectangle {
                id: rectangle2
                x: -36
                y: 208
                width: 2000
                height: 2000
                color: "#00000000"
                radius: 999
                smooth: true
                border.width: 2
                border.color: "#ffffff"
            }

            Rectangle {
                id: rectangle3
                x: -105
                y: -134
                width: 2000
                height: 2000
                color: "#00000000"
                radius: 999
                smooth: true
                border.color: "#ffffff"
                border.width: 2
            }



}
